home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / close < prev    next >
Text File  |  2001-03-21  |  640b  |  22 lines

  1. Synopsis:
  2.    $close(<file descriptor>)
  3.  
  4. Technical:
  5.    This function unbinds the given file descriptor (previously returned by
  6.    the $open() function) from the underlying file, causing the file to be
  7.    committed to disk if necessary.  An error is returned if it is passed a
  8.    file descriptor not produced by an $open() call.
  9.  
  10. Practical:
  11.    This function is used to close a file that was opened for reading or
  12.    writing by $open().  Data corruption may result if the client exits
  13.    before all open files are closed.
  14.  
  15. Returns:
  16.    -1   error
  17.     0   file closed successfully
  18.  
  19. See Also:
  20.    open(6); read(6); write(6)
  21.  
  22.